Distributed clustering method and system

ABSTRACT

A distributed data clustering system having an integrator and at least two computing units. Each computing unit is loaded with common global parameter values and a particular local data set. Each computing unit then generates local sufficient statistics based on the local data set and global parameter values. The integrator employs the local sufficient statistics of all the computing units to update the global parameter values.

FIELD OF THE INVENTION

[0001] The present invention relates generally to data clustering and more specifically to a method and system for distributed data clustering.

BACKGROUND OF THE INVENTION

[0002] There has been the general notion of performing the data clustering in parallel by more than one computer to increase the efficiency of the data clustering. This is particularly important as the data sets increase in the number of data points that need to be clustered, and the case of naturally distributed data (e.g., data for an international company with offices in many different offices located different countries and locations). Unfortunately, the known data clustering techniques were developed for execution by a single processing unit. Furthermore, although there have been attempts to make these known data clustering techniques into parallel techniques, as described in greater detail hereinbelow, these prior art approaches to formulate a parallel data clustering technique offer only tolerable solutions, each with its own disadvantages, and leaves much to be desired.

[0003] One prior art approach proposes a parallel version of the K-Means clustering algorithm. The publication entitled, “Parallel Implementation of Vision Algorithms on Workstation Clusters,” by D. Judd, N. K. Ratha, P. K. McKinley, J. Weng, and A. K. Jain, Proceedings of the 12^(th) International Conference on Pattern Recognition, Jerusalem, Israel, October 1994 describes parallel implementations of two computer vision algorithms on distributed cluster platforms. The publication entitled, “Performance Evaluation of Large-Scale Parallel Clustering in NOW Environments,” by D. Judd, P. K. McKinley, and A. K. Jain, Proceedings of the Eighth SIAM Conference on Parallel Processing for Scientific Computing, Minneapolis, Minn., March 1997 further presents the results of a performance study of parallel data clustering on Network of Workstations (NOW) platforms.

[0004] Unfortunately, these publications do not formalize the data clustering approach. Furthermore, the procedure for K-Means is described in a cursory fashion without explanation of how the procedure operates. Also, the publications are silent about whether the distributed clustering technique can be generalized, and if so, how the generalization can be performed, thereby limiting the applicability of the Judd approach to K-Means data clustering.

[0005] Another prior art approach proposes non-approximated, parallel versions of K-Means. The publication, “Parallel K-means Clustering Algorithm on NOWs,” by Sanpawat Kantabutra and Alva L. Couch, NECTEC Technical Journal, Vol. 1, No. 1, March 1999 describes an example of this approach. Unfortunately, the Kantabutra and Couch algorithm requires re-broadcasting the entire data set to all computers for each iteration. Consequently, this approach may lead to heavy congestion in the network and may impose a communication overhead or penalty. Since the trend in technology is for the speed of processors to improve faster than the speed of networks, it is desirable for a distributed clustering method to reduce the amount of data that needs to be communicated between the computers in the network.

[0006] Furthermore, the number of slave computing units in this algorithm is limited to the number of clusters to be found. Also, an analytical and empirical analysis of this approach estimates a 50% utilization of the processors. It would be desirable for a distributed clustering method that has a greater percentage of utilization of the processors.

[0007] Accordingly, there remains a need for a method and system for data clustering that can utilize more than one computing unit for concurrently processing the clustering task and that overcomes the disadvantages set forth previously.

SUMMARY OF THE INVENTION

[0008] According to one aspect of the present invention, a distributed data clustering method and system are provided for performing the data clustering in a parallel fashion instead of a sequential fashion.

[0009] According to another aspect of the present invention, a distributed data clustering method and system are provided for utilizing a network of computing resources that are either homogenous computing resources or heterogeneous computing resources.

[0010] According to yet another aspect of the present invention, a distributed data clustering method and system are provided for using a network of computers to efficiently process large data sets that need to be clustered.

[0011] According to another aspect of the present invention, a distributed data clustering method and system are provided for using a network of computers to efficiently process non-distributed data that need to be clustered.

[0012] According to yet another aspect of the present invention, a distributed data clustering method and system are provided for using a network of computers to efficiently process naturally distributed data that need to be clustered.

[0013] A distributed data clustering system having an integrator and at least two computing units. Each computing unit is loaded with common global parameter values and a particular local data set. Each computing unit then generates local sufficient statistics based on the local data set and global parameter values. The integrator employs the local sufficient statistics of all the computing units to update the global parameter values.

BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The present invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements.

[0015]FIG. 1 illustrates a distributed data clustering system configured in accordance with one embodiment of the present invention, where the distributed data clustering system has homogenous computing components.

[0016]FIG. 2 illustrates a distributed data clustering system configured in accordance with an alternative embodiment of the present invention, where the distributed data clustering system has heterogeneous computing components.

[0017]FIG. 3 is a block diagram illustrating in greater detail the integrator of FIG. 1 or FIG. 2 in accordance with one embodiment of the present invention.

[0018]FIG. 4 is a block diagram illustrating in greater detail a computing unit of FIG. 1 or FIG. 2 in accordance with one embodiment of the present invention.

[0019]FIG. 5 is a block diagram illustrating the information communicated between the integration program and computing program according to one embodiment of the present invention.

[0020]FIG. 6 is a flowchart illustrating the processing steps performed by the distributed data clustering system according to one embodiment of the present invention.

[0021]FIG. 7 illustrates an exemplary timeline for a single iteration of the distributed clustering method in a network without a broadcasting feature.

[0022]FIG. 8 illustrates a timeline for a single iteration of the distributed clustering method in a network with a broadcasting feature.

[0023]FIG. 9 illustrates exemplary data clustering methods that can be performed in the distributed manner as set forth by the present invention.

DETAILED DESCRIPTION

[0024] In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to avoid unnecessarily obscuring the present invention. The following description and the drawings are illustrative of the invention and are not to be construed as limiting the invention.

[0025] Homogenous Distributed Data Clustering System 100

[0026]FIG. 1 illustrates a distributed data clustering system 100 configured in accordance with one embodiment of the present invention, where the distributed data clustering system has homogenous computing components. The system 100 includes an integrator 110 and at least two computing units 120 that communicate via a network. In this example, there is a plurality of computing units 120 (e.g., L computing units labeled CU_(—)1, CU_(—)2, . . . , CU_L). The computing units 120 can be disposed in a distributed fashion and be remote from the integrator 110 and from the other computing units 120. It is noted that there can be a single computing unit 120 in a particular location, or a plurality of computing units 120 can be disposed in a particular location. It is noted that the integrator 110 can be implemented by a computing unit 120 that executes an integration program as described in greater detail hereinafter.

[0027] It is noted that the computing units 120 in this system are homogenous in nature (i.e., similar in processing capabilities, hardware configuration, etc.). In a system having a plurality of homogenous computing units 120, the processing can be divided evenly among the units 120. However, as described in greater detail hereinafter, when the computing units 120 are not homogenous, there may be an opportunity to allocate the processing task in such a manner as to consider the computing power of the computing unit.

[0028] Heterogeneous Distributed Data Clustering System

[0029]FIG. 2 illustrates a distributed data clustering system 200 configured in accordance with an alternative embodiment of the present invention, where the distributed data clustering system has heterogeneous computing components.

[0030] It is noted that the computing components (e.g., computing units 220 and integrator 210) in the system are heterogeneous in nature. In this embodiment, at least one or more of the computing components is different from the other components. For example, the computing components can be different in processing capabilities, hardware configuration, etc. In a distributed data clustering system having heterogeneous computing components, it is preferable to assign a particular processing task to a specific computing unit based on the requirements of the processing task and the processing power of the computing unit. Specifically, the processing power and capabilities of the computing units can be correlated to the specific requirements of the computation tasks when assigning different projects to the different units.

[0031] For example, more powerful computing units can be assigned a greater number of data points to process, and a less powerful computing units can be assigned a fewer number of data points to process so that all the computing units complete execution of their respective assigned tasks at about the same time. By so doing, the system can more efficiently manage the load of the clustering task and reduce the amount of time waiting for partial results that are needed to generate the final result.

[0032] Integrator

[0033]FIG. 3 is a block diagram illustrating in greater detail the integrator 110 or 210 of FIG. 1 or FIG. 2, respectively, in accordance with one embodiment of the present invention. The integrator 110 or 210 includes a processor 310 for executing computer programs and a memory 320 for storing information and programs. The memory 320 includes data points 330 to be clustered and an integration program 340.

[0034] When executing on the processor 310, the integration program 340 provides different data points common parameters (e.g., global parameter values) to each of the computing units, receives local information provided by the computing units 120, integrates the local information to generate global sufficient statistics, and based thereon updates the global parameter values (GPVs) that are subsequently provided to each of the computing units 120 for a next iteration. The distributed clustering method is described in greater detail hereinafter with reference to FIG. 6.

[0035] The integration program 340 includes a data splitter (DS) 344 for splitting the data points 330 into local data points that are provided to a particular computing unit. The integration program 340 also includes a global sufficient statistics determination unit (GSSDU) 348 for receiving the local sufficient statistics from the computing units and based thereon generates global sufficient statistics. The integration program 340 includes a global parameter value determination unit (GPVDU) 350 for receiving the global sufficient statistics from the GSSDU and based thereon for generating the global parameter value (GPV) that are subsequently provided to each of the computing units in the next iteration. The computing unit is described in greater detail hereinafter with reference to FIG. 4, and the information communicated between the integration program 340 and the computing program 438 is described in greater detail hereinafter with reference to FIG. 5.

[0036] A communication interface (I/F) 324 is also provided for the integrator 110 or 210 to communicate with the computing units through a network.

[0037] Computing Unit

[0038]FIG. 4 is a block diagram illustrating in greater detail a computing unit 120 or 210 of FIG. 1 or FIG. 2 in accordance with one embodiment of the present invention. The computing unit 120 or 210 includes a processor 410 for executing computer programs and a memory 420 for storing information and programs. The memory 420 includes local data 430 and a computing program 438.

[0039] When executing on the processor 310, the computing program 438 receives the global parameters (e.g., center locations) and the data points assigned to this computing unit, and generates local information (e.g., local sufficient statistics) and based on these inputs.

[0040] The computing program 438 includes a local sufficient statistics determination unit (LSSDU) 440 for determining local sufficient statistics based on the inputs. The LSS are subsequently provided to the integrator for further processing. A communication interface (I/F) 424 is also provided for the computing unit 120 or 220 to communicate with the integrator through a network.

[0041]FIG. 5 is a block diagram illustrating the information communicated between the integration program and computing program according to one embodiment of the present invention. The data splitter 344 receives the data points that need to be clustered and partitions the data points in a plurality of subsets of data points (e.g., local data_(—)1, local data_(—)2, . . . , local data_L). Each of these subsets of local data are then provided to a designated computing unit as shown. It is also noted that each of the computing units also receives common global parameter values (e.g., the initial or updated center locations). Based on the GPV and the specific local data, each computing unit generates local sufficient statistics (LSS) and provides the same to the GSSDU 348.

[0042] The GSSDU 348 receives the local sufficient statistics (LSS), such as LSS_(—)1, LSS_(—)2, . . . , LSS_L, from each of the computing units (1 to L), respectively, and generates global sufficient statistics (GSS) based thereon. The GPVDU 350 receives the GSS and employs the GSS to update or revise the GPV, which is subsequently provided to the computing units in the next iteration.

[0043] The distributed clustering technique of the present invention is especially suited to handle naturally distributed data or data where the number of data points is too large for a single processor or computing machine to handle. In the first case, distributed clustering technique of the present invention is well suited to process naturally distributed data. An example of naturally distributed data is customer data, sales data, and inventory data for an international company with offices in many different offices located different countries and locations. In such an example, the data splitter 344 is not needed and each computing unit can have access to its own local data. In response to the local data and GPV provided by GPVDU 350, each computing unit generates local sufficient statistics to provide to GSSDU 348.

[0044] In this second case, the data is split into manageable tasks where each task can be adequately processed by the computing units. In this manner, a task that may be too big for any one computing unit can be split into sub-tasks that can be efficiently processed by each of the computing units.

[0045] Distributed Clustering Method

[0046]FIG. 6 is a flowchart illustrating the distributed clustering method according to one embodiment of the present invention. In step 600, a data set having a plurality of data points is partitioned into at least two partitions or sub-sets of data points. In this example, there are L partitions or sub-sets of data points corresponding to L computing units.

[0047] By finding K centers (local high densities of data), M={m_(l)|i=1, . . . ,K}, the data set, S={x_(l)|i=1, . . . ,N}, can be partitioned either into discrete clusters using the Voronoi partition (each data item belongs to the center that it is closest to, as in K-Means) or into fuzzy clusters given by the local density functions (as in K-Harmonic Means or EM).

[0048] Step 600 can also include the step of loading the partitions into respective computing units and initializing the global parameter values (GPVs). It is noted that the step of splitting the data into partitions may be optional since the data may be naturally distributed.

[0049] In step 604, the GPVs are sent to all the computing units. In step 610, each computing unit determines local sufficient statistics (LSS) based on the received GPVs sent by the integrator and the specific partition or sub-set of data points loaded by the integrator. The LSS are then sent to the integrator.

[0050] As used herein the term “sufficient statistics” shall be defined as follows: quantities S can be called sufficient statistics of F, if the value of F can be uniquely calculated or determined from S without knowing any other information. In other words, S is sufficient for calculating F. For further information regarding sufficient statistics, please refer to Duda & Hart, “Pattern Classification and Scene Analysis,” John Wiley & Sons, pages 59-73.

[0051] In step 620, the integrator receives the LSS from each of the L computing units and based thereon generates global sufficient statistics (GSS). The LSS from the computing units are “integrated” to generate GSS. In step 630, the GSS are utilized to generate updated global parameter values (GPVs).

[0052] In step 640, the integrator checks the convergence quality of the resulting center locations from the current iteration. In step 650, a determination is made whether the convergence quality meets a predetermined standard. If the convergence quality meets the predetermined standard, processing proceeds to step 660 where the computing units 120 are instructed to stop processing and the center locations are provided as outputs. If the convergence quality does not meet the predetermined standard, processing proceeds to step 604 where are provided to the computing units 120 in preparation for a next iteration.

[0053] Timeline for Network without a Broadcast Feature

[0054]FIG. 7 illustrates an exemplary timeline 700 for a single iteration of the distributed clustering method in a network without a broadcasting feature. The horizontal axis 710 represents time, and the vertical axis 720 represents a plurality of computing units. Each iteration can be divided into four phases. In phase A, data set re-partitioning and local sufficient statistics collection are performed. In phase B, the local sufficient statistics are sent across the network to the integrator. In phase C the integrator performs integration of the LSSs and generation of updated GPVs. In phase D, the integrator propagates the updated GPVs to each of the computing units.

[0055] The first computing unit 740 is assigned the duties of the integrator. Consequently, the first computing unit 740 is provided with a lighter load of data (e.g., a partition or sub-set of data having fewer data points). The slope of the line indicated in phase B is generally different from the slope of the line indicated in phase D since the amount of data that is sent by the integrator to the computing units is not the same as the data that is sent by the computing units to the integrator.

[0056] Timeline for Network with Broadcast Feature

[0057]FIG. 8 illustrates a timeline 800 for a single iteration of the distributed clustering method in a network with a broadcasting feature. The horizontal axis 810 represents time, and the vertical axis 820 represents a plurality of computing units 830. Each iteration can be divided into four phases. In phase A, data set re-partitioning and local sufficient statistics collection can be performed. In phase B, the local sufficient statistics are sent across the network to the integrator. In phase C the integrator performs integration of the LSSs and generation of updated GPVs. In phase D, the integrator broadcasts the updated GPVs to each of the computing units. The broadcasting feature allows all the computing units to begin phase A at the same time without having a staggered start time as illustrated in FIG. 7.

[0058] For example, when the network of computers is Ethernet, the broadcasts can employ the broadcasting features of Ethernet. First, at a low level, there is a broadcast protocol for Ethernet. Second, Parallel Virtual Machine (PVM) and Message Passing Interface (MPI) (and their various implementations) typically have routines to broadcast messages that can be utilized. Third, shared memory protocols also support broadcasting. For example, a network interface card on each host may contain some memory, whose contents are replicated across all cards in the ring of hosts. In this regard, writing into the memory on one card replicates data to all other cards' memories.

[0059] Exemplary Data Clustering Systems

[0060]FIG. 9 illustrates a data clustering system 900 having exemplary data clustering systems that are implemented in a distributed manner according the present invention. The system 900 can include a distributed expectation maximization clustering system (DEMCS) 910 for implementing an EM clustering algorithm in a distributed manner. The DEMCS 910 includes one or more EM computing units 918 and an EM integrator 914 for providing weighting parameters and a co-variance matrix as global parameter values to the EM computing units 918. For further details regarding the EM clustering algorithm, please refer to Dempster, A. P., Laird, N. M., and Rubin, D. B., “Maximum Likelihood from Incomplete Data via the EM Algorithm”, J. of the Royal Stat. Soc., Series B, 39(1):1-38, 1977, and McLachlan, G. J., Krishnan, T., “The EM Algorithm and Extensions”, John Wiley & Sons, 1996.

[0061] The system 900 can include a distributed K-Means clustering system (DKMCS) 920 for implementing a KM clustering algorithm in a distributed manner. The DKMCS 920 includes one or more KM computing units 928 and a KM integrator 924 for providing center locations as global parameter values to the KM computing units 928. For further details regarding the K-Means clustering algorithm, please refer to “Some methods for classification and analysis of multivariate observations,” by J. MacQueen, Proceedings of the 5th Berkeley Symposium on Mathematical Statistics and Probability, Vol. 1., pages 281-297, University of California Press, Berkeley XVII +666 p, 1967.

[0062] The system 900 can include a distributed K-Harmonic Means clustering system (DKHMCS) 930 for implementing a KHM clustering algorithm in a distributed manner. The DKHMCS 930 includes one or more KHM computing units 938 and a KHM integrator 934 for providing center locations as global parameter values to the KHM computing units 938. For further details regarding the K-Harmonic Means clustering algorithm, please refer to “K-Harmonic Means—A Data Clustering Algorithm” by Zhang, B., Hsu, M., Dayal, U., Hewlett-Packard Research Laboratory Technical Report HPL-1999-124.

[0063] It is noted that other data clustering systems can be implemented in the distributed manner as set forth by the present invention. The distributed data clustering systems 910, 920, 930 implement center-based data clustering algorithms in a distributed fashion. However, these center based clustering algorithms, such as K-Means, K-Harmonic Means and EM, have been employed to illustrate the parallel algorithm for iterative parameter estimations of the present invention. In these examples, the center locations are the parameters, which are estimated through many iterations. However, the distributed iterative parameter estimation techniques of the present invention are not limited to application to clustering algorithms.

[0064] A Class of Center-Based Algorithms

[0065] Let R^(dim) be the Euclidean space of dimension dim; S⊂R^(dim) be a finite subset of data of size N=|S|; and M={m_(k)|k=1, . . . ,K}, the set of parameters to be optimized. For example, the parameter set M consists of K centroids for K-Means, K centers for K-Harmonic Means, and K centers with co-variance matrices and mixing probabilities for EM. The performance function and the parameter optimization step for this class of algorithms can be written in terms of SS. The performance function is decomposed as follows:

[0066] Performance Function: $\begin{matrix} {{F\left( {S,M} \right)} = {{f_{0}\left( {{\sum\limits_{x \in S}{f_{1}\left( {x,M} \right)}},{\sum\limits_{x \in S}{f_{2}\left( {x,M} \right)}},\ldots \quad,{\sum\limits_{x \in S}{f_{R}\left( {x,M} \right)}}} \right)}.}} & (1) \end{matrix}$

[0067] What is essential here is that f₀ depends only on the SS, represented by the sums, whereas the remaining f_(l) functions can be computed independently for each data point. The detailed form of f_(l), i=1, . . . ,R, depends on the particular performance function being considered, which is described in greater detail hereinafter with examples of K-Means, K-Harmonic Means and EM.

[0068] The center-based algorithm, which minimizes the value of the performance function over M, is written as an iterative algorithm in the form of Q SS (I( )stands for the iterative algorithm, and ${\sum\limits_{x \in S}g_{j}},{j = 1},\ldots \quad,Q,$

[0069] stands for SS.): $\begin{matrix} {M^{({u + 1})} = {{I\left( {{\sum\limits_{x \in S}{g_{1}\left( {x,M^{(u)}} \right)}},{\sum\limits_{x \in S}{g_{2}\left( {x,M^{(u)}} \right)}},\ldots \quad,{\sum\limits_{x \in S}{g_{Q}\left( {x,M^{(u)}} \right)}}} \right)}.}} & (2) \end{matrix}$

[0070] M^((u)) is the parameter vector after the u^(th) iteration. We are only interested in algorithms that converge: M^((u))→M The values of the parameters for the 0^(th) iteration, M⁽⁰⁾, are by initialization. One method often used is to randomly initialize the parameters (e.g., centers, covariance matrices and/or mixing probabilities). There are many different ways of initializing the parameters for particular types of center-based algorithms. The set of quantities $\begin{matrix} {{Suff} = \left\{ {{\sum\limits_{x\quad \in S}{{f_{r}\left( {x,M} \right)}\left. {{r = 1},\ldots \quad,R} \right\}}}\bigcup\left\{ {\sum\limits_{x\quad \in S}{{g_{q}\left( {x,M} \right)}{\left. {{q = 1},\ldots \quad,Q} \right\}.}}} \right.} \right.} & (3) \end{matrix}$

[0071] is called the global SS of the problem (1)+(2). As long as these quantities are available, the performance function and the new parameter values can be calculated, and the algorithm can be carried out to the next iteration. As described in greater detail hereinfater, K-Means, K-Harmonic Means and Expectation-Maximization clustering algorithms all belong to a class defined in (1)+(2).

[0072] Parallelism of Center-Based Algorithms

[0073] This decomposition of center-based algorithms (and many other iterative parameter estimation algorithms) leads to a natural parallel structure with minimal need for communication. Let L be the number of computing units that has a CPU and local memory (e.g., personal computers (PCs), workstations or multi-processor computers). To utilize all L units for the calculation of (1)+(2), the data set is partitioned into L subsets, S=D₁∪D₂∪ . . . ∪D_(L), and the l^(th) subset, D_(l), resides on the l^(th) unit. It is important not to confuse this partition with the clustering.

[0074] This partition is arbitrary and has nothing to do with the clustering in the data. This partition is static. Data points in D_(l), after being loaded into the memory of the l^(th) computing unit, need not be moved from one computer to another except perhaps for the purpose of load balancing among units, whose only effect is on the execution time of the processors (i.e., load balancing does not affect the algorithm).

[0075] The processing unit can be homogeneous processing units or heterogeneous processing units. The sizes of the partitions, |D_(l)|, besides being constrained by the storage of the individual units, are preferably set to be proportional to the speed of the computing units. Such a partition ensures that each unit takes about the same amount of time to finish its computation on each iteration, thereby improving the utilization of all the units. A scaled-down test may be carried out on each computing unit in advance to measure the actual speed (do not include the time of loading data because it is only loaded once at the beginning) or a load balancing over all units could be done at the end of first iteration.

[0076] The calculation is carried out on all L units in parallel. Each subset, D_(l), contributes to the refinement of the parameters in M in exactly the same way as the algorithm would have been run on a single computer. Each unit independently computes its partial sum of the SS over its data partition. The SS of the l^(th) partition are $\begin{matrix} {{Suff}_{l} = \left\{ {{\sum\limits_{x\quad \in D_{l}}{{f_{r}\left( {x,M} \right)}\left. {{r = 1},\ldots \quad,R} \right\}}}\bigcup\left\{ {\sum\limits_{x\quad \in D_{l}}{{g_{q}\left( {x,M} \right)}{\left. {{q = 1},\ldots \quad,Q} \right\}.}}} \right.} \right.} & (4) \end{matrix}$

[0077] One of the computing units is chosen to be the Integrator. The integrator is responsible for summing up the SS from all partitions (4), obtaining the global SS (3); calculating the new parameter values, M, from the global SS; evaluating the performance function on the new parameter values, (2); checking the stopping conditions; and informing all units to stop or sending the new parameters to all computing units to start the next iteration. The duties of the Integrator may be assigned as a part time job to one of the regular units. There may also be more than one computer used as Integrators. The multiple integrates can be organized in a hierarchy if the degree of parallelism is sufficiently high. Special networking support is also an option. If broadcast is supported efficiently, it may be effective to have every node be an Integrator, thereby eliminating one direction of communication.

[0078] The Parallel Clustering Algorithm:

[0079] Step 0: Initialization: Partition the data set and load the l^(th) partition to the memory of the l^(th) computing unit. Use any preferred algorithm to initialize the parameters, {m_(k)}, on the Integrator.

[0080] Step 1: Broadcast the integrated parameter values to all computing units.

[0081] Step 2: Compute at each unit independently the SS of the local data based on (4).

[0082] Step 3: Send SS from all units to the Integrator.

[0083] Step 4: Sum up the SS from each unit to get the global SS, calculate the new parameter values based on the global SS, and evaluate the performance function. If the Stopping condition is not met, goto Step 1 for the next iteration, else inform all computing units to stop. The stopping condition typically tests for sufficient convergence or the number of iterations.

[0084] Examples

[0085] The application of the techniques of the present invention to three exemplary clustering algorithms: K-Means, K-Harmonic Means, and EM, is now described.

[0086] K-Means Clustering Algorithm

[0087] K-Means is one of the most popular clustering algorithms. The algorithm partitions the data set into K clusters, S=(S_(l), . . . ,S_(K)), by putting each data point into the cluster represented by the center nearest to the data point. K-Means algorithm finds a local optimal set of centers that minimizes the total within cluster variance, which is K-Means performance function: $\begin{matrix} {{{{Perf}_{KM}\left( {X,M} \right)} = {\sum\limits_{k = 1}^{K}{\sum\limits_{x \in S_{l}}{{x - m_{k}}}^{2}}}},} & (5) \end{matrix}$

[0088] where the k^(th) center, M_(k), is the centroid of the k^(th) partition. The double summation in (5) can instead be expressed as a single summation over all data points, adding only the distance to the nearest center expressed by the MIN function below: $\begin{matrix} {\left. {{{{Perf}_{KM}\left( {X,M} \right)} = {{\sum\limits_{i = 1}^{N}{{MIN}\left\{ {{x_{i} - m_{l}}}^{2} \right.l}} = 1}},\ldots \quad,K} \right\}.} & (6) \end{matrix}$

[0089] The K-Means algorithm starts with an initial set of centers and then iterates through the following steps: For each data item, find the closest m_(k) and assign the data item to the k^(th) cluster. The current m_(k)'s are not updated until the next phase (Step 2).

[0090] 1. Recalculate all the centers. The k^(th) center becomes the centroid of the k^(th) cluster. This phase gives the optimal center locations for the given partition of data.

[0091] 2. Iterate through 1 & 2 until the clusters no longer change significantly.

[0092] After each phase, the performance value never increases and the algorithm converges to a local optimum. More precisely, the algorithm reaches a stable partition in a finite number of steps for finite datasets. The cost per iteration is O(K·dim·N).

[0093] The functions for calculating both global and local SS for K-Means are the 0^(th), 1^(st) and 2^(nd) moments of the data on the unit belonging to each cluster as shown in (7). Both the K-Means performance function and the new center locations can be calculated from these three moments. $\begin{matrix} \left\{ \begin{matrix} {{{g_{1}\left( {x,M} \right)} = {{f_{1}\left( {x,M} \right)} = \left( {{\delta_{1}(x)},{\delta_{2}(x)},\ldots \quad,{\delta_{K}(x)}} \right)}},} \\ {{{g_{2}\left( {x,M} \right)} = {{f_{2}\left( {x,M} \right)} = {{f_{1}\left( {x,M} \right)} \cdot x}}},} \\ {{g_{3}\left( {x,M} \right)} = {{f_{3}\left( {x,M} \right)} = {{f_{1}\left( {x,M} \right)} \cdot {x^{2}.}}}} \end{matrix} \right. & (7) \end{matrix}$

[0094] ≃_(k)(x)=1 if x is closest to m_(k), otherwise ≃_(k)(x)=0 (resolve ties arbitrarily). The summation of these functions over a data set (see (3) and (4)) residing on the l^(th) unit gives the count, n_(k,l), first moment, ≃_(k,l), and the second moment, s_(k,l), of the clusters. The vector {n_(k,l)≃_(k,l), s_(k,l),|k=1, . . . ,K}, has dimensionality 2·K+K·dim, which is the size of the SS that have to be communicated between the Integrator and each computing unit.

[0095] The set of SS presented here is more than sufficient for the simple version of K-Means algorithm. The aggregated quantity, ≃_(k)s_(k,l), could be sent instead of the individual s_(k,l). But there are other variations of K-Means performance functions that require individual s_(k,l), for evaluating the performance functions. Besides, the quantities that dominate the communication cost are ≃_(k,l).

[0096] The l^(th) computing unit collects the SS, {n_(k,l),≃_(k,l), s_(k,l),|k=1, . . . ,K}, on the data in its own memory, and then sends them to the Integrator. The Integrator simply adds up the SS from each unit to get the global SS, ${n_{k} = {\sum\limits_{l = 1}^{L}n_{k,l}}},{\sum\limits_{k}{= {\sum\limits_{l = 1}^{L}\sum\limits_{k,l}}}},{S_{k} = {\sum\limits_{l = 1}^{L}{S_{k,l}.}}}$

[0097] The leading cost of integration is O(K·dim·L), where L is the number of computing units. The new location of the k^(th) center is given by m_(k)=≃_(k)/n_(k) from the global SS (this is the I( )function in (2)), which is the only information all the computing units need to start the next iteration. The performance function is calculated by (proof by direct verification), ${Perf}_{KM} = {\sum\limits_{l = 1}^{L}{S_{k}.}}$

[0098] The parallel version of the K-Means algorithm gives exactly the same result as the original centralized K-Means because both the parallel version and the sequential version are based on the same global SS except on how the global SS are collected.

[0099] K-Harmonic Means Clustering Algorithm

[0100] K-Harmonic Means is a clustering algorithm that features an insensitivity to the initialization of the centers. In contrast to the K-Means clustering algorithm whose results depend on finding good initializations, K-Harmonic Means provides good results that are not dependent on finding good initializations.

[0101] The iteration step of the K-Harmonic Means algorithm adjusts the new center locations to be a weighted average of all x, where the weights are given by $\begin{matrix} {1/{{d_{x,k}^{s}\left( {\sum\limits_{x \in \quad S}\frac{1}{d_{x,l}^{2}}} \right)}^{2}.}} & (8) \end{matrix}$

[0102] (K-Means is similar, except its weights are the nearest-center membership functions, making its centers centroids of the cluster.) Overall then, the recursion equation is given by $\begin{matrix} {m_{k} = {\sum\limits_{x \in \quad S}{\frac{1}{{d_{x,k}^{s}\left( {\sum\limits_{l = 1}^{K}\frac{1}{d_{x,l}^{2}}} \right)}^{2}}/{\sum\limits_{x \in \quad S}{\frac{1}{{d_{x,k}^{s}\left( {\sum\limits_{l = 1}^{K}\frac{1}{d_{x,l}^{2}}} \right)}^{2}}.}}}}} & (9) \end{matrix}$

[0103] where d_(x,k)=∥x−m_(k)∥ and s is a constant ≃4. The decomposed functions for calculating SS (see (3) and (4)) are then $\begin{matrix} \left\{ \begin{matrix} {{g_{1}\left( {x,M} \right)} = {1/{\sum\limits_{\lambda = 1}^{K}\frac{1}{d_{x,k}^{2}}}}} \\ {{g_{2}\left( {x,M} \right)} = {{g_{1}^{2}\left( {x,M} \right)} \cdot \left( {\frac{1}{d_{x,1}^{s}},\frac{1}{d_{x,2}^{s}},\quad,\frac{1}{d_{x,K}^{s}}} \right)}} \\ {{g_{3}\left( {x,M} \right)} = {{{g_{1}^{2}\left( {x,M} \right)} \cdot \left( {\frac{1}{d_{x,1}^{s}},\frac{1}{d_{x,2}^{s}},\quad,\frac{1}{d_{x,K}^{s}}} \right)}x}} \end{matrix} \right. & (10) \end{matrix}$

[0104] Each computing unit collects the SS, $\begin{matrix} {{Suff}_{l} = \left\{ {{\sum\limits_{x \in D_{i}}{g_{2}\left( {x,M} \right)}},{\sum\limits_{x \in D_{i}}{g_{3}\left( {x,M} \right)}}} \right\}} & (11) \end{matrix}$

[0105] on the data in its own memory, and then sends it to the Integrator. The size of the SS vector is K+K·dim (g₃ is a matrix). The Integrator simply adds up the SS from each unit to get the global SS. The new centers are given by the component-wise quotient: $\begin{matrix} {{\left( {m_{1},m_{2},\ldots \quad,m_{K}} \right) = {{\sum\limits_{x \in S}{{g_{3}\left( {x,M} \right)}/{\sum\limits_{x \in \quad S}{g_{2}\left( {x,M} \right)}}}} = {\sum\limits_{l = 1}^{L}{\sum\limits_{x \in D_{i}}{{g_{3}\left( {x,M} \right)}/{\sum\limits_{l = 1}^{L}{\sum\limits_{x \in D_{i}}{g_{2}\left( {x,M} \right)}}}}}}}},} & (12) \end{matrix}$

[0106] which is the only information the units need to start the next iteration. This calculation costs O(K·dim·L). The updated global centers are sent to each unit for the next iteration. If broadcasting is an option, this is the total cost in time. If the Integrator finds the centers stop moving significantly, the clustering is considered to have converged to an optimum, and the units are stopped.

[0107] Expectation-Maximization (EM) Clustering Algorithm

[0108] In this example, the EM algorithm with linear mixing of K bell-shape (Gaussian) functions is described. Unlike K-Means and K-Harmonic Means in which only the centers are to be estimated, the EM algorithm estimates the centers, the co-variance matrices, Σ_(k), and the mixing probabilities, p(m_(k)). The performance function of the EM algorithm is $\begin{matrix} {{{Perf}_{EM}\left( {X,M,\Sigma,p} \right)} = {{- \log}{\left\{ {\underset{x \in S}{\Pi}\left\lbrack {\sum\limits_{k = 1}^{K}{p_{\lambda} \cdot \frac{1}{\sqrt{{\left( {2\pi} \right)^{D}\quad {\det \left( \sum\limits_{k} \right)}}\quad}} \cdot {{EXP}\left( {{- \left( {x - m_{k}} \right)}{\sum\limits_{\lambda}^{- 1}\left( {x - m_{k}} \right)^{T}}} \right)}}} \right\rbrack} \right\}.}}} & (13) \end{matrix}$

[0109] where the vector p=(p₁, p₂, . . ., p_(K)) is the mixing probability. EM algorithm is a recursive algorithm with the following two steps:

[0110] E-Step: Estimating “the percentage of x belonging to the k^(th) cluster”, $\begin{matrix} {{\left. {\left. {\left. {{{p\left( m_{k} \right.}}x} \right) = {{{p\left( x \right.}}m_{k}}} \right) \cdot {{p\left( m_{k} \right)}/{\sum\limits_{x \in S}{{{p\left( x \right.}}m_{k}}}}} \right) \cdot {p\left( m_{k} \right)}},} & (14) \end{matrix}$

[0111] where p(x|m) is the prior probability with Gaussian distribution, and p(mk) is the mixing probability. $\begin{matrix} {p\left( {\left. {x{m_{k}}} \right) = {\frac{1}{\sqrt{\left( {2\pi} \right)^{D}{\det \left( \sum\limits_{k} \right)}}} \cdot {{EXP}\left( {{- \left( {x - m_{k}} \right)}{\sum\limits_{k}^{- 1}\left( {x - m_{k}} \right)^{T}}} \right)}}} \right.} & (15) \end{matrix}$

[0112] M-Step: With the fuzzy membership function from the E-Step, find the new center locations, new co-variance matrices, and new mixing probabilities that maximize the performance function. $\begin{matrix} {\left. {{m_{k} = \frac{\left. {\sum\limits_{x \in S}{{{p\left( m_{\lambda} \right.}}x}} \right) \cdot x}{\left. {\sum\limits_{x \in S}{{{p\left( m_{k} \right.}}x}} \right)}},{\sum\limits_{k}{= \frac{{\left. {\sum\limits_{x \in S}{{{p\left( m_{k} \right.}}x}} \right) \cdot \left( {x - m_{k}} \right)^{T}}\left( {x - m_{\lambda}} \right)}{\left. {\sum\limits_{x \in S}{{{p\left( m_{k} \right.}}x}} \right)}}},{{p\left( m_{\lambda} \right)} = {\frac{1}{S}{\sum\limits_{x \in S}{{{p\left( m_{\lambda} \right.}}x}}}}} \right).} & \left( {16 - 18} \right) \end{matrix}$

[0113] The functions for calculating the SS are: $\begin{matrix} \left. {{f_{1}\left( {x,M,\Sigma,p} \right)} = {{- {\log\left\lbrack {\sum\limits_{l = 1}^{K}{{{p\left( x \right.}}m_{\lambda}}} \right)}}{p\left( m_{k} \right)}}} \right\rbrack \\ \left. \left. {\left. {{{g_{1}\left( {x,M,\Sigma,p} \right)} = \left( {{{p\left( m_{1} \right.}}x} \right)},{{{p\left( m_{2} \right.}}x}} \right),\ldots \quad,{{{p\left( m_{K} \right.}}x}} \right) \right) \\ \left. {\left. {{\left. {{\left. {{g_{2}\left( {x,M,\Sigma,p} \right)} = {{\left( {p\left( m_{1} \right.} \right.}x}} \right)x},{{{p\left( m_{2} \right.}}x}} \right)x},\ldots \quad,{{{p\left( m_{K} \right.}}x}} \right)x} \right) \\ \left. {\left. {{\left. {{\left. {{g_{3}\left( {x,M,\Sigma,p} \right)} = {{\left( {p\left( m_{1} \right.} \right.}x}} \right)x^{T}x},{{{p\left( m_{2} \right.}}x}} \right)x^{T}x},\ldots \quad,{{{p\left( m_{K} \right.}}x}} \right)x^{T}x} \right) \end{matrix}$

[0114] The vector length (in number of scalars) of the SS is 1+K+K·dim+K·dim². The global SS is also the sum of the SS from all units. The performance function value is given by the first global sufficient statistic. The global centers are from the component-wise “ratio” of the third and the second global SS (see (16)), the co-variance matrices from (17) and the mixing probability from (18). All these quantities, {m_(k), Σ_(k), p(m_(k))|k=1, . . . ,K}, have to be propagated to all the units at the beginning of each iteration. The vector length is K+K·dim+K·dim².

[0115] There are numerous applications that can utilize the distributed clustering method and system of the present invention to cluster data. For example, these applications include, but are not limited to, data mining applications, customer segmentation applications, document categorization applications, scientific data analysis applications, data compression applications, vector quantization applications, and image processing applications.

[0116] The foregoing description has provided examples of the present invention. It will be appreciated that various modifications and changes may be made thereto without departing from the broader scope of the invention as set forth in the appended claims. The distributed clustering method and system described hereinabove is not limited to data clustering algorithms, but can, for example, be applied to distributed parametric estimation applications (e.g., statistical estimation algorithms that use sufficient statistics). Furthermore, the distributed parameter estimation techniques of the present invention can be applied not only to large data sets, but also can be applied to naturally distributed data (e.g., environmental data, geological data, population data, governmental data on a global worldwide scale). Applications to collect, process and analyze the naturally distributed data, can advantageously utilize the distributed parameter estimations techniques of the present invention. These applications can include, for example, geological survey applications, environment monitoring applications, corporate management applications for an international company and economic forecast and monitoring applications. 

What is claimed is:
 1. A method for clustering data in a system having an integrator and at least two computing units comprising: (a) loading each computing unit with common global parameter values and a particular local data set; (b) each computing unit generating local sufficient statistics based on the local data set and global parameter values; and (c) employing the local sufficient statistics of all the computing units to update the global parameter values.
 2. The method of claim 1 wherein the step of loading each computing unit with common global parameter values and a particular local data set further comprises: a_(—)1) receiving a set of data points to be clustered; a_(—)2) dividing the data points into at least two local data sets; a_(—)3) sending common global parameter values to each of the computing units; and a_(—)4) sending each local data sets to a designated computing unit.
 3. The method of claim 2 wherein the step of employing the local sufficient statistics of all the computing units to update the global parameter values further comprises: c_(—)1) each computing unit sending its local sufficient statistics to the integrator; c_(—)2) the integrator determining global sufficient statistics based on the local sufficient statistics of all the computing units; and c_(—)3) the integrator determining updated global parameter values based on the global sufficient statistics.
 4. The method of claim 1 further comprising: d) checking the convergence quality; e) determining whether the convergence meets a predetermined quality; and f) when the convergence meets a predetermined quality, stop processing; otherwise; g) when the convergence fails to meet a predetermined quality, providing the updated global parameter values to the computing units and repeating steps (a) to (c).
 5. The method of claim 2 wherein sending common global parameter values to each of the computing units includes the step of: broadcasting common global parameter values to each of the computing units.
 6. The method of claim 2 further comprising the step of: initializing the common global parameter values before sending the common global parameter values to each of the computing units.
 7. The method of claim 1 wherein a distributed K-Means clustering algorithm is implemented.
 8. The method of claim 1 wherein a distributed K-Harmonic Means clustering algorithm is implemented.
 9. The method of claim 1 wherein a distributed Expectation-Maximization (EM) clustering algorithm is implemented.
 10. The method of claim 1 wherein the data points to be clustered are naturally distributed.
 11. A distributed data clustering system comprising: (a) a first computing unit for performing data clustering based on a first local data set that is a subset of data points to be clustered and global parameter values to generate first local sufficient statistics; (b) a second computing unit for performing data clustering based on a second local data set that is a subset of the data points to be clustered and global parameter values to generate second local sufficient statistics; and (c) a integrator unit for receiving the first and second local sufficient statistics from the first and second computing units, respectively, and for employing the first and second local sufficient statistics to update the global parameter values.
 12. The distributed data clustering system of claim 11 wherein the system performs a distributed K-Means clustering algorithm.
 13. The distributed data clustering system of claim 11 wherein the system performs a distributed K-Harmonic Means clustering algorithm.
 14. The distributed data clustering system of claim 11 wherein the system performs a distributed Expectation-Maximization (EM) clustering algorithm.
 15. The distributed data clustering system of claim 11 wherein the first and second local data sets include data points that are naturally distributed.
 16. The distributed data clustering system of claim 11 wherein the integrator receives a set of data points to be clustered, divides the data points into at least two local data sets, sends common global parameter values to each of the computing units, and sends each of the local data sets to a designated computing unit.
 17. The distributed data clustering system of claim 11 wherein the integrator receives the local sufficient statistics from the first and second computing units; and wherein the integrator determining global sufficient statistics based on the local sufficient statistics of the first and second computing units; and wherein the integrator determines updated global parameter values based on the global sufficient statistics.
 18. The distributed data clustering system of claim 11 wherein the integrator checks the convergence quality, determines whether the convergence meets a predetermined quality, and when the convergence meets a predetermined quality, the integrator stops processing, when the convergence fails to meet a predetermined quality, the integrator provides updated global parameter values to the computing units.
 19. The distributed data clustering system of claim 11 wherein the integrator broadcasts common global parameter values to the first and second computing units.
 20. The distributed data clustering system of claim 11 wherein the integrator initializes the common global parameter values before sending the common global parameter values to the first and second computing units. 